<div>
	{if $op eq 1}
    <input type="button" name="btn_back" value="Back" onclick="location.href='?mod=camu&a=m';" />
    {else}
    <input type="button" name="btn_back" value="Back" onclick="location.href='?mod=camu&a=u';" />
    {/if}	
	 
    &nbsp;&nbsp;<input type="button" name="btn_add" value="Add new test" onclick="location.href='?mod=camu&a=addtest&m={$mid}&u={$unitid}';" />
</div>
<div>
<table width="100%" border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse;">
	<tr>
    	<td width="10">N.</td>
        <td align="center">Test</td>
        <td width="250" align="center"></td>
    </tr>
    {section name="test" loop=$list_tests}
    <tr>
    	<td align="center">{$smarty.section.test.iteration}</td>
        <td>{$list_tests[test].Title}</td>
        <td><a href="?mod=camu&a=edittest&tid={$list_tests[test].TestID}">Edit</a>&nbsp;&nbsp;
		
		|&nbsp;&nbsp;<a href="?mod=camu&a=deletetest&tid={$list_tests[test].TestID}">Delete</a>&nbsp;&nbsp;
		
		|&nbsp;&nbsp;<a href="?mod=camu&a=questionintest&tid={$list_tests[test].TestID}&m={$mid}&u={$unitid}">View Questions</a>
		
		|&nbsp;&nbsp;<a href="?mod=camu&a=addquestionbank&tid={$list_tests[test].TestID}&op={$op}&m={$mid}&u={$unitid}">Add More Question</a></td>
    </tr>
    {/section}
</table>
</div>